package com.laundry.lib;

import java.sql.Connection;
import java.sql.DriverManager;


public class Database {
	 static String userName = "root";
     static String password = "root";
     static String url = "jdbc:mysql://localhost/laundromat";
     
     
     public static Connection getConnection() throws Exception{
    	 
     Class.forName ("com.mysql.jdbc.Driver").newInstance ();
     return DriverManager.getConnection (url, userName, password);         
     }
}
